package com.hung.pojo;

/**
 * 账号类
 * @author Hung
 */
public class Account {

    private Integer id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 密码
     */
    private String password;
    /**
     * 角色id
     */
    private Integer rid;

    public Account() {
    }

    public Account(String name, String password) {
        this.name = name;
        this.password = password;
    }


    public Account(int id, String name, String password, int rid) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.rid = rid;
    }

    public Account(int id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", rid=" + rid +
                '}';
    }
}
